package com.chuanke.ckfamily.dao.social;

import java.util.List;
import java.util.Map;

import com.chuanke.ckfamily.dao.base.Page;
import com.chuanke.ckfamily.dao.user.model.User;

import org.apache.ibatis.annotations.Param;

import com.chuanke.ckfamily.dao.social.model.FamilyMember;
import com.weijie.core.BaseDao;

public interface FamilyMemberDao extends BaseDao<FamilyMember> {
	List<FamilyMember> findFamilyMember(@Param("param") Map<String, Object> param);

	FamilyMember findByUserId(@Param("user_id") Long userId);

	List<User> findMembers(@Param("tid") Long tid);

	List<User> findTopMembers(@Param("tid") Long tid);

	List<User> getCanAddMember(@Param("param") Map<String, Object> param, @Param("page") Page page);
	
	List<Map<String, Object>> getFamilyMembers(@Param("param") Map<String, Object> param, @Param("page") Page page);

	List<Map<String, Object>> findAllMember();
}